home *** CD-ROM | disk | FTP | other *** search
- -- card: 7507 from stack: in
- -- bmap block id: 9857
- -- flags: 4000
- -- background id: 7338
- -- name: Plain Sphere
- ----- HyperTalk script -----
- on mouseUp
- set numberFormat to <0.000000>
-
- --Calculate Surface Area
- get 4*pi*card field "Radius"^2
- put it into card field "Surface Area"
-
- --Calculate Volume
- get (4/3)*pi*card field "Radius"^3
- put it into card field "Volume"
-
- --Calculate Circumference
- get 2*pi*card field "Radius"
- put it into card field "Circumference"
- end mouseUp
-
-
- -- part 1 (field)
- -- low flags: 00
- -- high flags: 0002
- -- rect: left=318 top=91 right=108 bottom=447
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Radius
-
-
- -- part 2 (field)
- -- low flags: 01
- -- high flags: 0004
- -- rect: left=319 top=162 right=181 bottom=448
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Surface Area
-
-
- -- part 3 (field)
- -- low flags: 01
- -- high flags: 0004
- -- rect: left=319 top=201 right=220 bottom=448
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Volume
-
-
- -- part 4 (field)
- -- low flags: 01
- -- high flags: 0004
- -- rect: left=319 top=237 right=256 bottom=448
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Circumference
-
-
- -- part contents for card part 1
- ----- text -----
- .500000
-
- -- part contents for card part 2
- ----- text -----
- 3.141593
-
- -- part contents for card part 3
- ----- text -----
- 0.523599
-
- -- part contents for card part 4
- ----- text -----
- 3.141593